package server.container;

public abstract class UserAlarm {

	
	
	
	protected int userId = -1;
	
	protected EinsatzAlarm alarm;
	
	protected String blockIdentifier = "";
	
	public UserAlarm(int userId, EinsatzAlarm alarm) {
		
		this.alarm = alarm;
		this.userId = userId;
		blockIdentifier = userId + "|" + alarm.getFeuerwehrID() + "|" + alarm.isProbeAlarm();
	}
	
	public abstract String getBlockIdentifier();

	public boolean isProbeAlarm() {
		return false;
	}
	
	public EinsatzAlarm getAlarm() {
		
		return alarm;
	}
	
	public int getUserId() {
		
		return userId;
	}
	
}
